package com.qf.demo.controller;

import com.qf.demo.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/cart")
public class CartController {

    @Autowired
   private CartService cartService;

    @RequestMapping("/add")
    @ResponseBody
    public void test0(String uid,String pid){
        System.out.println(uid+""+pid);

        cartService.upDateOrInsert(Integer.valueOf(uid),Integer.valueOf(pid));

    }

}
